{% load static %}
<!DOCTYPE html>
<html>

<head>
    <!-- 页面meta -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">

    <!-- 网页名称 -->
    <title>个性化健康饮食推荐系统</title>
    <meta name="description" content="个性化健康饮食推荐系统 - 科学管理饮食，助力健康生活">
    <meta name="keywords" content="健康饮食，饮食推荐，个性化食谱，营养管理">

    <!-- 响应式设置 -->
    <meta content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" name="viewport">
    

    <!-- 替换为Font Awesome 6.4.0 -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <link rel="stylesheet" href="{% static 'myadmin/plugins/bootstrap/css/bootstrap.min.css'%}">
    <!-- 移除旧版本Font Awesome引入 -->
    <!-- <link rel="stylesheet" href="{% static 'myadmin/plugins/font-awesome/css/font-awesome.min.css'%}"> -->
    <link rel="stylesheet" href="{% static 'myadmin/plugins/ionicons/css/ionicons.min.css'%}">
    <link rel="stylesheet" href="{% static 'myadmin/plugins/iCheck/square/blue.css'%}">  <!-- 更改复选框-->
    <link rel="stylesheet" href="{% static 'myadmin/plugins/morris/morris.css'%}">
    <link rel="stylesheet" href="{% static 'myadmin/plugins/jvectormap/jquery-jvectormap-1.2.2.css'%}">
    <link rel="stylesheet" href="{% static 'myadmin/plugins/datepicker/datepicker3.css'%}">
    <link rel="stylesheet" href="{% static 'myadmin/plugins/daterangepicker/daterangepicker.css'%}">
    <link rel="stylesheet" href="{% static 'myadmin/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css'%}">
    <link rel="stylesheet" href="{% static 'myadmin/plugins/datatables/dataTables.bootstrap.css'%}">
    <link rel="stylesheet" href="{% static 'myadmin/plugins/treeTable/jquery.treetable.css'%}">
    <link rel="stylesheet" href="{% static 'myadmin/plugins/treeTable/jquery.treetable.theme.default.css'%}">
    <link rel="stylesheet" href="{% static 'myadmin/plugins/select2/select2.css'%}">
    <link rel="stylesheet" href="{% static 'myadmin/plugins/colorpicker/bootstrap-colorpicker.min.css'%}">
    <link rel="stylesheet" href="{% static 'myadmin/plugins/bootstrap-markdown/css/bootstrap-markdown.min.css'%}">
    <link rel="stylesheet" href="{% static 'myadmin/plugins/adminLTE/css/AdminLTE.css'%}">
    <link rel="stylesheet" href="{% static 'myadmin/plugins/adminLTE/css/skins/_all-skins.min.css'%}">
    <link rel="stylesheet" href="{% static 'myadmin/dist/css/style.css'%}">
    <link rel="stylesheet" href="{% static 'myadmin/plugins/ionslider/ion.rangeSlider.css'%}">
    <link rel="stylesheet" href="{% static 'myadmin/plugins/ionslider/ion.rangeSlider.skinNice.css'%}">
    <link rel="stylesheet" href="{% static 'myadmin/plugins/bootstrap-slider/slider.css'%}">
    <link rel="stylesheet" href="{% static 'myadmin/plugins/bootstrap-datetimepicker/bootstrap-datetimepicker.css'%}">


    <!-- 自定义健康主题样式 
    <style>
        .skin-green .main-header .navbar {
            background-color: #2ecc71; /* 清新绿色导航栏 */
        }
        .skin-green .main-header .logo {
            background-color: #27ae60; /* 深绿色Logo区 */
        }
        .skin-green .main-sidebar {
            background-color: #2c3e50; /* 深色侧边栏 */
        }
        .skin-green .sidebar-menu > li.active > a {
            border-left-color: #2ecc71; /* 激活项绿色边框 */
        }
        .btn-primary {
            background-color: #27ae60;
            border-color: #27ae60;
        }
        .btn-primary:hover {
            background-color: #219653;
            border-color: #1e8e4c;
        }
        .label-success {
            background-color: #2ecc71;
        }
        .progress-bar-aqua {
            background-color: #1abc9c;
        }
    </style>
    -->


</head>



<body class="hold-transition skin-blue sidebar-mini">  <!-- 更改主题皮肤 -->

    <div class="wrapper">

        <!-- 页面头部 -->
        <header class="main-header">


            <!-- Logo -->
            <a href="{% url 'myadmin_introduction' %}" class="logo">
                <!-- mini logo -->
                <span class="logo-mini"><i class="fa fa-leaf"></i></span>
                <!-- logo -->
                <span class="logo-lg"><i class="fa fa-cutlery"></i><b>健康饮食</b>管理系统</span>
            </a>


            <!-- Header Navbar -->
            <nav class="navbar navbar-static-top">
                <!-- Sidebar toggle button-->
                <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
            <span class="sr-only">Toggle navigation</span>
        </a>

                <div class="navbar-custom-menu">
                    <ul class="nav navbar-nav">
                        <!-- Messages -->
                        <li class="dropdown messages-menu">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        <i class="fa fa-envelope"></i>
                        <span class="label label-success">4</span>
                    </a>
                            <ul class="dropdown-menu">
                                <li class="header">你有4条饮食相关消息</li>
                                <li>
                                    <!-- inner menu -->
                                    <ul class="menu">
                                        <li>
                                            <!-- start message -->
                                            <a href="#">
                                                <div class="pull-left">
                                                    <img src="{% static 'myadmin/dist/img/user2-160x160.jpg'%}" class="img-circle" alt="User Image">
                                                </div>
                                                <h4>
                                                    系统通知
                                                    <small><i class="fa fa-clock-o"></i> 5 分钟前</small>
                                                </h4>
                                                <p>新的季节性健康食谱已上线</p>
                                            </a>
                                        </li>
                                        <!-- end message -->
                                        <li>
                                            <a href="#">
                                                <div class="pull-left">
                                                    <img src="{% static 'myadmin/dist/img/user3-128x128.jpg'%}" class="img-circle" alt="User Image">
                                                </div>
                                                <h4>
                                                    营养顾问
                                                    <small><i class="fa fa-clock-o"></i> 2 小时前</small>
                                                </h4>
                                                <p>用户饮食计划已更新</p>
                                            </a>
                                        </li>
                                        <li>
                                            <a href="#">
                                                <div class="pull-left">
                                                    <img src="{% static 'myadmin/dist/img/user4-128x128.jpg'%}" class="img-circle" alt="User Image">
                                                </div>
                                                <h4>
                                                    Developers
                                                    <small><i class="fa fa-clock-o"></i> Today</small>
                                                </h4>
                                                <p>Why not buy a new awesome theme?</p>
                                            </a>
                                        </li>
                                        <li>
                                            <a href="#">
                                                <div class="pull-left">
                                                    <img src="{% static 'myadmin/dist/img/user3-128x128.jpg'%}" class="img-circle" alt="User Image">
                                                </div>
                                                <h4>
                                                    Sales Department
                                                    <small><i class="fa fa-clock-o"></i> Yesterday</small>
                                                </h4>
                                                <p>Why not buy a new awesome theme?</p>
                                            </a>
                                        </li>
                                        <li>
                                            <a href="#">
                                                <div class="pull-left">
                                                    <img src="{% static 'myadmin/dist/img/user4-128x128.jpg'%}" class="img-circle" alt="User Image">
                                                </div>
                                                <h4>
                                                    Reviewers
                                                    <small><i class="fa fa-clock-o"></i> 2 days</small>
                                                </h4>
                                                <p>Why not buy a new awesome theme?</p>
                                            </a>
                                        </li>
                                    </ul>
                                </li>
                                <li class="footer"><a href="#">查看所有消息</a></li>
                            </ul>
                        </li>
                        <!-- Notifications: style can be found in dropdown.less -->
                        <li class="dropdown notifications-menu">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        <i class="fa fa-bell"></i>
                        <span class="label label-warning">10</span>
                    </a>
                            <ul class="dropdown-menu">
                                <li class="header">你有10条健康提醒</li>
                                <li>
                                    <!-- inner menu -->
                                    <ul class="menu">
                                        <li>
                                            <a href="#">
                                        <i class="fa fa-users text-aqua"></i> 5位用户完成今日饮食目标
                                    </a>
                                        </li>
                                        <li>
                                            <a href="#">
                                        <i class="fa fa-warning text-yellow"></i> 3位用户营养摄入不均衡
                                    </a>
                                        </li>
                                        <li>
                                            <a href="#">
                                        <i class="fa fa-users text-red"></i> 5 new users joined
                                    </a>
                                        </li>
                                        <li>
                                            <a href="#">
                                        <i class="fa fa-shopping-cart text-green"></i> 25 sales made
                                    </a>
                                        </li>
                                        <li>
                                            <a href="#">
                                        <i class="fa fa-user text-red"></i> You changed your username
                                    </a>
                                        </li>
                                    </ul>
                                </li>
                                <li class="footer"><a href="#">查看所有提醒</a></li>
                            </ul>
                        </li>
                        <!-- Tasks -->
                        <li class="dropdown tasks-menu">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        <i class="fa fa-flag"></i>
                        <span class="label label-danger">9</span>
                    </a>
                            <ul class="dropdown-menu">
                                <li class="header">你有9个饮食计划任务</li>
                                <li>
                                    <!-- inner menu -->
                                    <ul class="menu">
                                        <li>
                                            <!-- Task item -->
                                            <a href="#">
                                                <h3>
                                                    Design some buttons
                                                    <small class="pull-right">20%</small>
                                                </h3>
                                                <div class="progress xs">
                                                    <div class="progress-bar progress-bar-aqua" style="width: 20%" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">
                                                        <span class="sr-only">20% Complete</span>
                                                    </div>
                                                </div>
                                            </a>
                                        </li>
                                        <!-- end task item -->
                                        <li>
                                            <!-- Task item -->
                                            <a href="#">
                                                <h3>
                                                    Create a nice theme
                                                    <small class="pull-right">40%</small>
                                                </h3>
                                                <div class="progress xs">
                                                    <div class="progress-bar progress-bar-green" style="width: 40%" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">
                                                        <span class="sr-only">40% Complete</span>
                                                    </div>
                                                </div>
                                            </a>
                                        </li>
                                        <!-- end task item -->
                                        <li>
                                            <!-- Task item -->
                                            <a href="#">
                                                <h3>
                                                    Some task I need to do
                                                    <small class="pull-right">60%</small>
                                                </h3>
                                                <div class="progress xs">
                                                    <div class="progress-bar progress-bar-red" style="width: 60%" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">
                                                        <span class="sr-only">60% Complete</span>
                                                    </div>
                                                </div>
                                            </a>
                                        </li>
                                        <!-- end task item -->
                                        <li>
                                            <!-- Task item -->
                                            <a href="#">
                                                <h3>
                                                    Make beautiful transitions
                                                    <small class="pull-right">80%</small>
                                                </h3>
                                                <div class="progress xs">
                                                    <div class="progress-bar progress-bar-yellow" style="width: 80%" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">
                                                        <span class="sr-only">80% Complete</span>
                                                    </div>
                                                </div>
                                            </a>
                                        </li>
                                        <!-- end task item -->
                                    </ul>
                                </li>
                                <li class="footer">
                                    <a href="#">查看所有任务</a>
                                </li>
                            </ul>
                        </li>
                        <!-- User Account: style can be found in dropdown.less -->
                        <li class="dropdown user user-menu">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        <img src="{% static 'myadmin/dist/img/user2-160x160.jpg'%}" class="user-image" alt="User Image">
                        <span class="hidden-xs">{{request.COOKIES.adminuser}}</span>
                    </a>
                            <ul class="dropdown-menu">
                                <!-- User image -->
                                <li class="user-header">
                                    <img src="{% static 'myadmin/dist/img/user2-160x160.jpg'%}" class="img-circle" alt="User Image">

                                    <p>
                                        {{request.COOKIES.adminuser}} - 管理员
                                        <small>{{request.COOKIES.adminuser_created_at}}加入</small>
                                    </p>
                                </li>
                                <!-- Menu Body 
                        <li class="user-body">
                            <div class="row">
                                <div class="col-xs-4 text-center">
                                    <a href="#">Followers</a>
                                </div>
                                <div class="col-xs-4 text-center">
                                    <a href="#">Sales</a>
                                </div>
                                <div class="col-xs-4 text-center">
                                    <a href="#">Friends</a>
                                </div>
                            </div>
                        </li>-->
                                <!-- Menu Footer-->
                                <li class="user-footer">
                                    <div class="pull-left">
                                        <a href="#" class="btn btn-default btn-flat">修改密码</a>
                                    </div>
                                    <div class="pull-right">
                                        <a href="{% url 'myadmin_logout' %}" class="btn btn-default btn-flat">退出</a>
                                    </div>
                                </li>
                            </ul>
                        </li>

                    </ul>
                </div>
            </nav>
        </header>
        <!-- 页面头部 /-->

        <!-- 导航侧栏 -->
        <aside class="main-sidebar">
            <!-- sidebar: style can be found in sidebar.less -->
            <section class="sidebar">
                <!-- Sidebar user panel -->
                <div class="user-panel">
                    <div class="pull-left image">
                        <img src="{% static 'myadmin/dist/img/user2-160x160.jpg'%}" class="img-circle" alt="User Image">
                    </div>
                    <div class="pull-left info">
                        <p>{{request.COOKIES.adminuser}}</p>
                        <a href="#"><i class="fa fa-circle text-success"></i> 在线</a>
                    </div>
                </div>
                <!-- search form -->
                <!--<form action="#" method="get" class="sidebar-form">
            <div class="input-group">
                <input type="text" name="q" class="form-control" placeholder="搜索...">
                <span class="input-group-btn">
                <button type="submit" name="search" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i>
                </button>
              </span>
            </div>
        </form>-->
                <!-- /.search form -->


                <!-- sidebar menu: : style can be found in sidebar.less -->
                <ul class="sidebar-menu">
                    <li class="header">主要导航</li>

                    <li id="admin-index"><a href="{% url 'myadmin_index' %}"><i class="fa fa-home"></i> <span>首页</span></a></li>
                    <li id="admin-index"><a href="{% url 'myadmin_users_index' 1 %}"><i class="fa fa-user"></i> <span>账号管理</span></a></li>

                    <li id="ubr-index"><a href="{% url 'myadmin_userbodyrecords_index' 1 %}"><i class="fa fa-heartbeat"></i> <span>健康数据管理管理</span></a></li>

                    <!-- 图表列
                    <li class="treeview">
                        <a href="{% url 'myadmin_userbodyrecords_index' 1 %}">
                    <i class="fa fa-heartbeat"></i> <span>健康数据管理</span>
                    <span class="pull-right-container">
                        <i class="fa fa-angle-left pull-right"></i>
                    </span>
                </a>
                        <ul class="treeview-menu">

                            <li id="charts-chartjs">
                                <a href="all-charts-chartjs.html">
                            <i class="fa fa-circle-o"></i> ChartJS
                        </a>
                            </li>

                            <li id="charts-morris">
                                <a href="all-charts-morris.html">
                            <i class="fa fa-circle-o"></i> Morris Charts
                        </a>
                            </li>

                            <li id="charts-flot">
                                <a href="all-charts-flot.html">
                            <i class="fa fa-circle-o"></i> Flot Charts
                        </a>
                            </li>

                            <li id="charts-inline">
                                <a href="all-charts-inline.html">
                            <i class="fa fa-circle-o"></i> Inline Charts
                        </a>
                            </li>

                        </ul>
                    </li>
                    -->


                    <li class="treeview">
                        <a href="#">
                    <i class="fa fa-chart-line"></i> <span>饮食管理</span>
                    <span class="pull-right-container">
                        <i class="fa fa-angle-left pull-right"></i>
                    </span>
                </a>
                        <ul class="treeview-menu">

                            <li id="elements-general">
                                <a href="{% url 'myadmin_dietplan_index' 1 %}">
                            <i class="fa fa-calendar-alt"></i> 饮食计划管理
                        </a>
                            </li>

                            <li id="elements-buttons">
                                <a href="{% url 'myadmin_userdietrecords_index' 1 %}">
                            <i class="fa fa-list-check"></i> 饮食记录管理
                        </a>
                            </li>
                
                            <li id="order-manage">
                                <a href="{% url 'myadmin_userpreferences_index' 1 %}">
                            <i class="fa fa-heart"></i> 饮食偏好管理
                        </a>
                    
                        </ul>
                    </li>



                    <li class="treeview">
                        <a href="#">
                    <i class="fa fa-seedling"></i> <span>营养服务</span>
                    <span class="pull-right-container">
                        <i class="fa fa-angle-left pull-right"></i>
                    </span>
                </a>
                        <ul class="treeview-menu">

                            <li id="form-general">
                                <a href="{% url 'myadmin_nutritionistadvice_index' 1 %}">
                            <i class="fa fa-user-md"></i> 营养顾问建议管理
                        </a>
                            </li>

                            <li id="elements-icons">
                                <a href="{% url 'myadmin_recipes_index' 1 %}">
                            <i class="fa fa-book-open"></i> 食谱管理
                        </a>
                            </li>

                            <li id="form-advanced">
                                <a href="{% url 'myadmin_recommendations_index' 1 %}">
                            <i class="fa fa-lightbulb"></i> 推荐食谱相关
                        </a>
                            </li>
                        </ul>
                    </li>



                    <li class="treeview">
                        <a href="#">
                    <i class="fa fa-th-list"></i> <span>食物数据库管理</span>
                    <span class="pull-right-container">
                        <i class="fa fa-angle-left pull-right"></i>
                    </span>
                        </a>
                        <ul class="treeview-menu">

                            <li id="tables-foodcategories">
                                <a href="{% url 'myadmin_foodcategories_index' 1 %}">
                            <i class="fa fa-tags"></i> 食物类别
                                </a>
                            </li>

                            <li id="tables-foods">
                                <a href="{% url 'myadmin_foods_index' 1 %}">
                            <i class="fa fa-chart-pie"></i> 食物总览
                                </a>
                            </li>

                        </ul>
                    </li>

                    <li class="treeview">
                        <a href="#">
                    <i class="fa fa-cog"></i> <span>系统辅助</span>
                    <span class="pull-right-container">
                        <i class="fa fa-angle-left pull-right"></i>
                    </span>
                </a>
                        <ul class="treeview-menu">

                            <li id="system-setting">
                                <a href="{% url 'myadmin_userfeedback_index' 1 %}">
                            <i class="fa fa-comment-dots"></i> 用户反馈
                        </a>
                            </li>

                            <li id="system-setting">
                                <a href="all-system-setting-edit.html">
                            <i class="fa fa-info-circle"></i> 用户手册
                        </a>
                            </li>

                        </ul>
                    </li>



                    <!-- 菜单 

                    <li id="admin-documentation"><a href="documentation.html" target="_blank"><i class="fa fa-file-text"></i> <span>用户手册</span></a></li>

                    /-->
                </ul>
            </section>
            <!-- /.sidebar -->
        </aside>
        <!-- 导航侧栏 /-->

        <!-- 内容区域 -->
        <div class="content-wrapper">
            {% block main_body %}
            {% endblock %}
        </div>

    <script src="{% static 'myadmin/plugins/jQuery/jquery-2.2.3.min.js'%}"></script>
    <script src="{% static 'myadmin/plugins/jQueryUI/jquery-ui.min.js'%}"></script>
    <script>
        $.widget.bridge('uibutton', $.ui.button);
    </script>
    <script src="{% static 'myadmin/plugins/bootstrap/js/bootstrap.min.js'%}"></script>
    <script src="{% static 'myadmin/plugins/raphael/raphael-min.js'%}"></script>
    <script src="{% static 'myadmin/plugins/morris/morris.min.js'%}"></script>
    <script src="{% static 'myadmin/plugins/sparkline/jquery.sparkline.min.js'%}"></script>
    <script src="{% static 'myadmin/plugins/jvectormap/jquery-jvectormap-1.2.2.min.js'%}"></script>
    <script src="{% static 'myadmin/plugins/jvectormap/jquery-jvectormap-world-mill-en.js'%}"></script>
    <script src="{% static 'myadmin/plugins/knob/jquery.knob.js'%}"></script>
    <script src="{% static 'myadmin/plugins/daterangepicker/moment.min.js'%}"></script>
    <script src="{% static 'myadmin/plugins/daterangepicker/daterangepicker.js'%}"></script>
    <script src="{% static 'myadmin/plugins/daterangepicker/daterangepicker.zh-CN.js'%}"></script>
    <script src="{% static 'myadmin/plugins/datepicker/bootstrap-datepicker.js'%}"></script>
    <script src="{% static 'myadmin/plugins/datepicker/locales/bootstrap-datepicker.zh-CN.js'%}"></script>
    <script src="{% static 'myadmin/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js'%}"></script>
    <script src="{% static 'myadmin/plugins/slimScroll/jquery.slimscroll.min.js'%}"></script>
    <script src="{% static 'myadmin/plugins/fastclick/fastclick.js'%}"></script>
    <script src="{% static 'myadmin/plugins/iCheck/icheck.min.js'%}"></script>
    <script src="{% static 'myadmin/plugins/adminLTE/js/app.min.js'%}"></script>
    <script src="{% static 'myadmin/plugins/treeTable/jquery.treetable.js'%}"></script>
    <script src="{% static 'myadmin/plugins/select2/select2.full.min.js'%}"></script>
    <script src="{% static 'myadmin/plugins/colorpicker/bootstrap-colorpicker.min.js'%}"></script>
    <script src="{% static 'myadmin/plugins/bootstrap-wysihtml5/bootstrap-wysihtml5.zh-CN.js'%}"></script>
    <script src="{% static 'myadmin/plugins/bootstrap-markdown/js/bootstrap-markdown.js'%}"></script>
    <script src="{% static 'myadmin/plugins/bootstrap-markdown/locale/bootstrap-markdown.zh.js'%}"></script>
    <script src="{% static 'myadmin/plugins/bootstrap-markdown/js/markdown.js'%}"></script>
    <script src="{% static 'myadmin/plugins/bootstrap-markdown/js/to-markdown.js'%}"></script>
    <script src="{% static 'myadmin/plugins/ckeditor/ckeditor.js'%}"></script>
    <script src="{% static 'myadmin/plugins/input-mask/jquery.inputmask.js'%}"></script>
    <script src="{% static 'myadmin/plugins/input-mask/jquery.inputmask.date.extensions.js'%}"></script>
    <script src="{% static 'myadmin/plugins/input-mask/jquery.inputmask.extensions.js'%}"></script>
    <script src="{% static 'myadmin/plugins/datatables/jquery.dataTables.min.js'%}"></script>
    <script src="{% static 'myadmin/plugins/datatables/dataTables.bootstrap.min.js'%}"></script>
    <script src="{% static 'myadmin/plugins/chartjs/Chart.min.js'%}"></script>
    <script src="{% static 'myadmin/plugins/flot/jquery.flot.min.js'%}"></script>
    <script src="{% static 'myadmin/plugins/flot/jquery.flot.resize.min.js'%}"></script>
    <script src="{% static 'myadmin/plugins/flot/jquery.flot.pie.min.js'%}"></script>
    <script src="{% static 'myadmin/plugins/flot/jquery.flot.categories.min.js'%}"></script>
    <script src="{% static 'myadmin/plugins/ionslider/ion.rangeSlider.min.js'%}"></script>
    <script src="{% static 'myadmin/plugins/bootstrap-slider/bootstrap-slider.js'%}"></script>
    <script src="{% static 'myadmin/plugins/bootstrap-datetimepicker/bootstrap-datetimepicker.js'%}"></script>
    <script src="{% static 'myadmin/plugins/bootstrap-datetimepicker/locales/bootstrap-datetimepicker.zh-CN.js'%}"></script>
    <script>
        $(document).ready(function() {
            // 选择框
            $(".select2").select2();

            // WYSIHTML5编辑器
            $(".textarea").wysihtml5({
                locale: 'zh-CN'
            });
        });


        // 设置激活菜单
        function setSidebarActive(tagUri) {
            var liObj = $("#" + tagUri);
            if (liObj.length > 0) {
                liObj.parent().parent().addClass("active");
                liObj.addClass("active");
            }
        }


        $(document).ready(function() {
            // 激活导航位置
            setSidebarActive("admin-index");
        });
    </script>
</body>

</html>
<!---->